<?php
include_once $config ['client_model_path'] . "/cate.php";
$detail = new detail();
$cate = new cate();

$rsAttachs = $detail->viewAttachFiles();
$article = $detail->viewArtitle();
$rsComment = $detail->viewComment($article['id']);
$config['site_title'] = $article['title'] . ' - ' . nosignTitle($article['title']) . ' - BanTinNhaDat.vn';
$config['site_description'] = $article['short_description'];
$config['site_keyword'] = $article['title'] . ',' . nosignTitle($article['title']) . ', ' . $config['site_keyword'];
$cat = $cate->get_cate_by_id($article['cat_id'], 'detail');
include_once $config ['client_theme_path'] . $config ['client_theme'] . '/header.php';
?>
<div id="b">
    <article>

        <h3><?php echo $article['title']; ?></h3>
        <?php if (trim($article['image']) != '') { ?>
            <img src="<?php echo createThumb($article['image']); ?>" alt="<?php echo $article['title']; ?>"/>
            <?php
        }
        ?>
        <h2><?php echo $article['description']; ?></h2>
    </article>

    <?php include_once $config ['client_theme_path'] . $config ['client_theme'] . '/right.php'; ?>

</div>
<!-- END CONTAINER-->
<?php include_once $config ['client_theme_path'] . $config ['client_theme'] . '/footer.php'; ?>